﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="deal_edit.aspx.cs" Inherits="LinkCard.AdminCP.Deal.deal_edit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <script>
     var $j = jQuery.noConflict(); //set no conflict so you can use with MS AJAX.

     $j(document).ready(function () {
         $j(".PostDate").datepicker();

         $j(".EndDate").datepicker();
     });

 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section id="content">
  <section class="container_12 clearfix">
    <section id="main" class="grid_12">
      <article>
        <div class="h1">Cập nhật deal</div>
          <dl class="inline">
         
            <dt>
              <label >Danh mục:</label>
            </dt>
            <dd>
              <asp:DropDownList ID="CategoryID" runat="server"></asp:DropDownList>
            </dd>
            
            <dt>
              <label >Công ty bán hàng:</label>
            </dt>
            <dd>
              <asp:DropDownList ID="SupplierID" runat="server"></asp:DropDownList>
 
            </dd>
            
            <dt>
              <label >Tên:</label>
            </dt>
            <dd>
              <input type="text"   class="big" id="Name" runat="server" />
            </dd>
            <dt>
              <label >Mô tả:</label>
            </dt>
            <dd>
            <textarea id="Description" rows="4" class="big" runat="server"></textarea>
              
            </dd>
             <dt>
              <label >Chi tiết:</label>
            </dt>
            <dd>
              <FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/fckeditor/" Height="500px" >
                </FCKeditorV2:FCKeditor>
            </dd>
            <dt>
              <label >Tags:</label>
            </dt>
            <dd>
              <input type="text" class="medium"  id="txtTags" runat="server" /> 
            </dd>
              <dt>
              <label >Album ảnh:</label>
            </dt>
            <dd>
              <FCKeditorV2:FCKeditor ID="DealImage" runat="server" BasePath="~/fckeditor/" Height="500px" >
                </FCKeditorV2:FCKeditor>
            </dd>
            <dt>
              <label >Giá:</label>
            </dt>
            <dd>
              <input type="text" class="medium"  id="Price" runat="server" /> (Nghìn VNĐ)
            </dd>
            <dt>
              <label >Chiết khấu:</label>
            </dt>
            <dd>
              <input type="text"   class="medium" id="Discounting" runat="server" /> (%)
            </dd>
            <dt>
              <label >% TopLink:</label>
            </dt>
            <dd >
            <input type="text"   class="medium" id="TopLinkRate" runat="server" /> (%)
              </dd>
            <dt>
              <label >Điểm tích lũy:</label>
            </dt>
            <dd>
              <input type="text"   class="medium" id="Point" runat="server" />
            </dd>
            <dt>
              <label >Ngày kết thúc:</label>
            </dt>
            <dd>
              <input type="text"   class="EndDate" id="EndDate" runat="server" />
            </dd>
            <dt>
              <label >Ngày đăng:</label>
            </dt>
            <dd>
              <input type="text"   class="PostDate" id="PostDate" runat="server" />
            </dd>
           
  
          </dl>
          <p>
          <input type="hidden" id="DealID" runat="server" />
          <input type="hidden" id="Status" runat="server" />
          <asp:Button class="button big" Text="Duyệt" ID="btnAccept" runat="server" 
                  onclick="btnAccept_Click"  style="width:auto;"  />
          <asp:Button class="button white" Text="Từ chối" ID="btnDrop" runat="server" 
                  onclick="btnDrop_Click"  />
          <asp:Button class="button big" Text="Chuyển duyệt" ID="btnPublish" runat="server" 
                  onclick="btnPublish_Click"  style="width:auto;"  />
           <asp:Button class="button big" Text="Lưu tạm" ID="btnUpdate" runat="server" 
                  onclick="btnUpdate_Click"  style="width:auto;"  />
          <asp:Button class="button white" Text="Xóa" ID="btnDel" runat="server" 
                  onclick="btnDel_Click"  />
          </p>
       
      </article>
    </section>
  </section>
</section>
</asp:Content>
